<?php
include '../lib/global.php';
include LIB_PATH.'bean/User.php';
include LIB_PATH.'biz/UserValidate.php';
include LIB_PATH.'utils/functions.php';
include LIB_PATH.'db/db.php';

$user = new User('a', '123');
$userValidate = new UserValidate($user);

if($userValidate->validateDB($GLOBALS['DB'])){
    echo "ok";
}else{
    echo "no";
}